import { Dayjs } from "dayjs";
import { reactive, ref } from "vue";

export default function InitHook() {
  const formState = reactive<Partial<{ expectedPickupTime: string | Dayjs }>>({
    expectedPickupTime: undefined
  });
  const loading = ref<boolean>(false);
  const formDataRef = ref<any>(null);
  return {
    formState,
    formDataRef,
    loading
  };
}
